package com.hui.blog_server.service.impl;

import com.hui.blog_server.entity.Album;
import com.hui.blog_server.mapper.AlbumMapper;
import com.hui.blog_server.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlbumServiceImpl implements AlbumService {

    @Autowired
    public AlbumMapper albumMapper;

    @Override
    public List<Album> getAllAlbums() {
        return albumMapper.selectList(null);
    }
}
